﻿// Decompiled with JetBrains decompiler
// Type: DnProcessSimulateCommands.LoadEntityLevel.CUiLoadEntityLevelCmd
// Assembly: DnProcessSimulateCommands, Version=2402.0.0.890, Culture=neutral, PublicKeyToken=null
// MVID: A885D881-AEDF-447E-852A-6F13102E089C
// Assembly location: C:\Program Files\Tecnomatix_2402\eMPower\DotNetCommands\DnProcessSimulateCommands.dll

using DnProcessSimulateCommands.Modeling;
using Tecnomatix.Engineering;
using Tecnomatix.Engineering.CommandParameters;
using Tecnomatix.Engineering.Ui;


namespace DnProcessSimulateCommands.LoadEntityLevel;

public sealed class CUiLoadEntityLevelCmd : TxButtonCommand
{
  private CUiEntityLevelEnabler m_enabler;

  public CUiLoadEntityLevelCmd() => this.m_enabler = new CUiEntityLevelEnabler();

  public virtual string Category => LoadEntityLevelStringTable.CMD_CATEGORY;

  public virtual string Name => LoadEntityLevelStringTable.CMD_NAME;

  public virtual string Tooltip => LoadEntityLevelStringTable.CMD_TOOLTIP;

  public virtual string Bitmap => "LoadEntityLevel.LoadEntityLevelIcon.bmp";

  public virtual string LargeBitmap => "LoadEntityLevel.LoadEntityLevelIcon_LARGE.png";

  public virtual ITxImage Image => (ITxImage) TxImageManager.GetImageByKey("LoadEntityLevel");

  public virtual string Description => LoadEntityLevelStringTable.CMD_DESCRIPTION;

  public virtual ITxCommandEnabler CommandEnabler => (ITxCommandEnabler) this.m_enabler;

  public virtual bool Licensed => TxCommandLicenser.LoadEentityLevel;

  public virtual void Execute(object cmdParams)
  {
    if (!CApSetEndModelingApp.ExeuteSimulationCheck())
      return;
    CApLoadEntityLevelApp loadEntityLevelApp = new CApLoadEntityLevelApp(this.m_enabler);
    TxMultipleObjectParameters objectParameters = (TxMultipleObjectParameters) null;
    if (cmdParams != null)
      objectParameters = CApDduCommandParamsUtils.GetMultiObjectParameters(cmdParams);
    loadEntityLevelApp.Execute(objectParameters);
  }
}
